# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="The GUI front-end of Synfig, an industrial-strength vector-based 2D animation software package."
MY_P=${PN/-/}-${PV/_p/-}
S=${WORKDIR}/${MY_P}

# currently :
# https://sourceforge.net/projects/synfig/
# http://www.deepdarc.com/2005/11/01/synfig-developer-preview/
HOMEPAGE="http://www.synfig.com"
SRC_URI="http://www.bridgetone.com/voria/files/${MY_P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
# KEYWORDS need to be updated
KEYWORDS="x86"
IUSE="fmod"

RDEPEND=">=dev-cpp/gtkmm-2.4.0
>=media-gfx/synfig-0.61.00_p38
fmod? ( media-libs/fmod )"

DEPEND="${RDEPEND}"

src_compile() {
	econf \
		$(use_with fmode libfmod ) \
		|| die "Configure failed!"
	emake || die "emake failed"
}

src_install() {
	make DESTDIR="${D}" install || die "Install failed!"
}

